Repository navigation
docs(alerts): explain when recovery alerts are sent [RED-1416] - #882
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…alerts are sent [RED-1416]
… alerts [RED-1416]
…VERY everywhere [RED-1416]
…d the incident tools a silenced recovery leaves open [RED-1416]
…d the mute note [RED-1416]
…hannel list [RED-1416]
…overview [RED-1416]
…ent open [RED-1416]
e9d19a2 to
2336e1b
Compare
…cident [RED-1416]
EvidenceMintlify preview (on
Review: Claude and Codex Sol and Astra: no wrong claims. Webapp hint: https://github.com/checkly/monorepo/pull/7568 |
hlenke
left a comment
There was a problem hiding this comment.
Ready to merge · Every recovery rule this PR adds held in an end-to-end test, and CI is green. Two small optional additions are below.
What the tests showed
I deployed failing, degraded and muted checks with webhook channels on a local Checkly, moved them through three states, and read which channel got which alert:
- A channel with only a check recovers got the recovery without the failure. A channel subscribed while the check was failing got only the recovery.
- A failure silenced by mute or by a maintenance window was not sent later. The recovery after the silence was sent, without a failure alert before it.
- A recovery during mute or during a maintenance window was not sent, and not sent later either.
ALERT_DEGRADED_RECOVERYwent only to the channel with both a check degrades and a check recovers. Failing, then degraded, then passing ended withALERT_RECOVERYto every channel with a check recovers, also when the failure alert had been silenced by mute.- With "alert after 5 failures", two failed runs and a pass sent nothing at all.
- An automated status page incident stayed open when its check recovered while muted. The control incident of an unmuted check resolved.
- On an account on the Hobby plan, an incident.io channel got neither the failure nor the recovery.
Not run: the two sentences about parallel checks and Location-Based Escalation. They need runs from several regions, and the local stack has one. The alert decision code on monorepo main matches both.
Sibling pages (optional)
constructs/status-page-v3-automation-rule.mdxL8 still says Checkly "resolves it when the check recovers". The two status page pages in this PR now add "unless the check is muted at that moment". The construct page should say the same, sincepr_impact.pyflags it as a near copy ofcommunicate/status-pages/overview.mdxL45.communicate/status-pages/v2-deprecated.mdxL34 has the same sentence for the old check-to-service automation. I did not test that path.
Merge readiness
- CI:
static-docs-checks,docs-gate,preview-checks, link-rot and the spell check all pass. GitHub reports the PR as mergeable and clean.mainhas no new commits since the PR's base. - Overlap: #774 also edits
communicate/alerts/overview.mdx,communicate/alerts/configuration.mdxandcommunicate/status-pages/incidents.mdx; #874 editsconstructs/alert-channel.mdx; #857 editsintegrations/alerts/webhooks.mdx. This PR is small and tested, so I'd land it first and rebase the others. - The edited snippet
snippets/alert-channel-options-text.mdxrenders on the alert channel construct pages. I read the new sentence in the snippet; its link target is the new heading, and the link check passes. - The new section sits after the transition table and before Testing your alerts, which is where a reader of the table looks next.
- The web app hint the description links (monorepo pull request 7568) is still open. Nothing in this PR depends on it.
Inline: 0 blockers, 0 important, 1 wording.
What I checked
- The whole diff from the merge base 336f537 (9 files, 32 additions, 11 deletions), and the full
communicate/alerts/overview.mdxandcommunicate/alerts/configuration.mdxat the PR head for placement. - Tested on local Checkly (monorepo 1addd5cd3b, CLI 10.5.0). Changes made by hand for the tests: a maintenance window created and deleted through the API to start and end the silence, one test account moved to the Hobby plan in the database after the deploy (the CLI refuses an incident.io channel on Hobby) and given check runs to spend, and the status page test run on an account that has incident automation. The tests are listed under "What I tested".
- Monorepo
main(1addd5cd3b), in my own words:apps/results-daemon/decision/decide_alert_action.go(a recovery is published only when the last alert of the check was a failure or degraded alert; a degraded recovery becomesALERT_RECOVERYwhen the check went from failing to degraded after an alert; degraded to failing skips the thresholds except the location threshold of a parallel check),apps/backend/api/daemons/alerting-daemon/src/helpers.ts(which events a channel needs for each alert type),AlertingDaemon.ts(mute and silencing windows stop the notification, not the alert),V3IncidentManager.ts(automation ignores a muted check),apps/backend/api/src/common/services/alert-notification-service/plan-filter.ts(channel types on Hobby), and the three event labels in the alert channel editor. - Production:
prod-commit.shreports backend 1addd5cd3b (deployed 2026-11-27 16:54 UTC), the commit the tests ran on. gh pr checks 882,gh pr view 882,gh pr listfor overlap,pr_impact.py.- Could not verify: the parallel check cases (see above); a failing-to-degraded recovery after a failure silenced by a maintenance window instead of mute; SMS on Hobby itself; group mute (only check mute was tested).
What I tested: 11 claims end to end on a local Checkly from monorepo main, 2 not runnable there
| Where | Kind | Result | |
|---|---|---|---|
| c1 | communicate/alerts/overview.mdx:103 |
alert | pass: A check failed, then passed. The failure went to the two channels with a check fails. The recovery went to the two channels with a check recovers, one of which never got the failure. A fail-only channel got no recovery. |
| c2 | communicate/alerts/overview.mdx:99 |
alert | pass: A check with alert after 5 failed runs failed twice and then passed: no failure alert and no recovery alert. |
| c3 | communicate/alerts/overview.mdx:117 |
alert | pass: A check degraded, then passed. ALERT_DEGRADED_RECOVERY went to the channel with both events. Two channels with a check recovers but without a check degrades got nothing. |
| c4 | communicate/alerts/overview.mdx:95 |
alert | pass: Unmuted check: fail, degraded, pass ended with ALERT_RECOVERY to all three channels with a check recovers. A check that was muted while it failed and degraded, then unmuted and passing, also got ALERT_RECOVERY on both of its channels. The same with a maintenance window instead of mute was not run. |
| c5 | communicate/alerts/configuration.mdx:280 |
alert | pass: A muted check failed: the alert was generated, no notification was sent. Unmuted and passing, its channel got ALERT_RECOVERY and never an ALERT_FAILURE. |
| c6 | communicate/alerts/configuration.mdx:280 |
alert | pass: A check failed (notification sent), was muted and passed: the recovery alert was generated with no notification. After unmuting it kept passing and nothing more was sent. |
| c7 | communicate/maintenance-windows/overview.mdx:81 |
alert | pass: A window that silences alerts for one tag was open while the tagged check failed: no notification. The window was deleted, the check passed, and its channel got ALERT_RECOVERY without a failure alert. Ending the window was done by deleting it, not by waiting for its end time. |
| c8 | communicate/maintenance-windows/overview.mdx:81 |
alert | pass: A check failed (notification sent). A silencing window was opened and the check passed: the recovery alert was generated with no notification. After the window was removed nothing more was sent. |
| c9 | communicate/alerts/overview.mdx:109 |
alert | pass: A second channel was subscribed while the check was failing. It got nothing then, and ALERT_RECOVERY when the check passed. |
| c10 | communicate/status-pages/incidents.mdx:76 |
alert | pass: On an account with incident automation, two tagged checks failed and each rule opened an incident. Both checks passed, one of them muted. The unmuted check's incident got a Resolved update. The muted check's incident stayed at Investigating, also after the check was unmuted. |
| c11 | communicate/alerts/overview.mdx:116 |
billing | pass: A check with a generic webhook channel and an incident.io channel, on an account moved to the Hobby plan by hand in the database after the deploy (the CLI refuses to deploy an incident.io channel to a Hobby account). Failure and recovery both went to the generic webhook only. SMS itself was not tested. |
| c12 | communicate/alerts/overview.mdx:96 |
alert | not run (box-missing-feature): Needs a parallel check that fails in only some of several locations; the local stack runs one region. Source read instead: the alert decision code of the results daemon on monorepo main skips this alert for a parallel check below its location threshold. |
| c13 | communicate/alerts/overview.mdx:110 |
alert | not run (box-missing-feature): Same limit as above. By the source, the degraded alert stays the last alert, so the later pass is sent as ALERT_RECOVERY to every channel with a check recovers. |
| c14 | communicate/alerts/overview.mdx:111 |
other | source: Already stated on main in the same page under Notifications were sent but didn't arrive; the API answers in the tests carry a delivery status per notification. |
| c15 | communicate/alerts/overview.mdx:103 |
other | source: monorepo apps/webapp/src/pages/alert-channel-builder/PageAlertChannelBuilderNotificationsEvents.vue has these three labels; the page already used them on main. |
Co-authored-by: Hannes Lenke <hannes@lenke.at>
hlenke
left a comment
There was a problem hiding this comment.
Ready to merge · The one new commit since my last review adds the sentence that an incident left open by a muted recovery stays open after unmuting, and a fresh test confirms it. CI is green.
Since my last review (d0a2362)
One commit, 2bb5b79, changes only communicate/status-pages/incidents.mdx L76. It adds: "That incident stays open after you unmute the check, so resolve it yourself." My last test read the incident only about 30 seconds after unmuting, so I ran it again with a longer wait. The incident of the check that recovered while muted was still at Investigating five and a half minutes after unmuting, while the check passed every minute. The control incident of an unmuted check resolved when the check passed. On monorepo main, the alerting daemon's incident manager acts only on an alert of an unmuted check. In the test, unmuting produced no new alert, so nothing resolved the incident. That matches the sentence.
Sibling pages (optional, still open from the last review)
constructs/status-page-v3-automation-rule.mdxL8 still says Checkly "resolves it when the check recovers", with no mention of mute.communicate/status-pages/overview.mdxL45 in this PR now says "unless the check is muted at that moment". The construct page could say the same.communicate/status-pages/v2-deprecated.mdxL34 has the same sentence for the old check-to-service automation. I did not test that path.
Merge readiness
- CI on 2bb5b79:
static-docs-checks,docs-gate,preview-checks, link-rot, the spell check and the Mintlify deployment all pass. GitHub reports the PR as mergeable and clean. - None of
main's commits since the PR's base touches a file this PR changes. - Overlap: #774 also edits
communicate/status-pages/incidents.mdx. As before, I'd land this PR first.
Inline: 0 blockers, 0 important, 0 wording.
What I checked
git diff d0a2362 2bb5b79(one commit, one line). No merge ofmainsince the last review; the merge base is still 336f537.- Tested on local Checkly (monorepo 759928d1a6, CLI 10.5.0). The automation rule test ran on an account that has status page incident automation.
- Monorepo
main:apps/backend/api/daemons/alerting-daemon/src/V3IncidentManager.ts. In my own words: incidents are managed only for alerts of an entitled account and an unmuted check. gh pr checks 882,gh pr view 882,gh pr listfor overlap,pr_impact.pyfrom the merge base.- Could not verify: whether a later failure and recovery of the unmuted check would close the old incident or open a second one. The page does not claim either.
What I tested: 1 claims end to end on a local Checkly from monorepo main, 0 not runnable there
| Where | Kind | Result | |
|---|---|---|---|
| c16 | communicate/status-pages/incidents.mdx:76 |
alert | pass: On an account with incident automation, two tagged checks failed and each rule opened an incident. Both checks passed, one of them muted: only the unmuted check's incident got a Resolved update. The muted check was then unmuted and kept passing every minute; five and a half minutes later its incident was still at Investigating, with no further update. |




Affected Components
Notes for the Reviewer
Explains when recovery alerts are sent, including to channels that didn't get the failure alert:
sendRecoveryoption text, the alert channel list and the URL monitor alert types: degraded recoveries also need degraded alerts selected.Webapp hint under "a check recovers": https://github.com/checkly/monorepo/pull/7568
Part of RED-1416.
Testing